package com.allwees.bs.c.module.merchant.entity;

import com.allwees.bs.core.model.merchant.entity.StoreModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * 店铺
 *
 * @author yangylsky
 * @since 2019-12-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "mms_store")
public class StoreEntity extends StoreModel {
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "retailer_uuid", referencedColumnName = "uuid")
    private RetailerEntity retailer;
}
